﻿#-------------------------------------------------------------------------------
# Name:        InformationGatheringConstants
# Purpose:
#
# Author:      evob0413
#
# Created:     11.07.2014
# Copyright:   (c) evob0413 2014
# Licence:     <your licence>
#-------------------------------------------------------------------------------

# константы модуля, останутся здесь
SCREEN_FILE_NAME = "screen_capture.jpg"
SCREEN_FILE_FORMAT = "JPEG"
WHITE_COLOR = 255

KEY_NICKNAME = "nickname"
KEY_BALANCE = "balance"
KEY_BET = "bet"
KEY_ACTION = "action"
KEY_IS_ACTIVE = "is_active"
KEY_HAND = "hand"
KEY_CARD_HAND_0 = "card_hand_0"
KEY_CARD_HAND_1 = "card_hand_1"
KEY_CARD_TABLE_0 = "card_table_0"
KEY_CARD_TABLE_1 = "card_table_1"
KEY_CARD_TABLE_2 = "card_table_2"
KEY_CARD_TABLE_3 = "card_table_3"
KEY_CARD_TABLE_4 = "card_table_4"
KEY_TABLE_CARDS = "table_cards"
KEY_MESSAGES = "messages"

POSITION_CARD_HAND_0 = "card_hand_0"
POSITION_CARD_HAND_1 = "card_hand_1"
POSITION_CARD_TABLE_0 = "card_table_0"
POSITION_CARD_TABLE_1 = "card_table_1"
POSITION_CARD_TABLE_2 = "card_table_2"
POSITION_CARD_TABLE_3 = "card_table_3"
POSITION_CARD_TABLE_4 = "card_table_4"


# тестовые константы, удалить
TEST_SCREEN_FILE_NAME = "test_screen_capture.jpg"
TEST_LEFT = 1270
TEST_UPPER = 390
TEST_RIGHT = 1350
TEST_BOTTOM = 405
TEST_TEXT_COLOR = 225

# конфигурация, вынести в файл properties
PLAYERS_COUNT = 6

class ConfiguringParameters(object):

    parameters = {}

    def __init__(self):
        file = open("config.properties", "r")
        for line in file.readlines():
            map = line.split("=")
            if len(map) == 2:
                self.parameters[map[0]] = map[1]
        file.close()
        print self.parameters

def main():
    pass

if __name__ == '__main__':
    main()
